import React, { Component } from 'react';
import '../styles/Navigation.css'
class navigation extends Component {
    state={
        list:[
            {text:'综合'},
            {text:'销量'},
            {text:'新品'},
            {text:'价格'},
            {text:'筛选'},
        ]
    }
    render() {
        return (
            <div className='navigation'>
                {
                    this.state.list.map((item,index)=>{
                        return (
                            <span key={index}>{item.text}</span>
                        )
                    })
                }
            </div>
        );
    }
}

export default navigation;